#ifndef _SEARCHKEYSTRUCTURE_H
#define _SEARCHKEYSTRUCTURE_H

#include <string>
using namespace std;

class SearchKeyStructure
{
	public:

		SearchKeyStructure();
		void SetKeyValues( string keyOfOrigin, string keyOfContents );
		virtual ~SearchKeyStructure();

		SearchKeyStructure( const SearchKeyStructure& source);
		SearchKeyStructure& operator = (const SearchKeyStructure& source );
	
		bool operator == ( const SearchKeyStructure& source );
		bool operator != ( const SearchKeyStructure& source );

		string& GetKeyOfContents() const;
		string& GetKeyOfOrigin() const;


	private:
			
		string keyOfContents; //본문검색키
		string keyOfOrigin;   //출처검색키
};


inline string& SearchKeyStructure::GetKeyOfContents() const
{
	return const_cast<string&>(this->keyOfContents);
}

inline string& SearchKeyStructure::GetKeyOfOrigin() const
{
	return const_cast<string&>(this->keyOfOrigin);
}


#endif
